﻿//-----------------------------------------------------------------------
// <copyright file="Point.cs" company="Microsoft">
//     Copyright (c) AGALTIER, Microsoft. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace ArchiSimple.Windows.Model
{
    using System;
    using System.Linq;
#if NETFX_CORE
    using WindowsPoint = global::Windows.Foundation.Point;
#else
    using WindowsPoint = global::System.Windows.Point;
#endif

    /// <summary>
    /// TODO: Provide summary section in the documentation header.
    /// </summary>
    public class Point : PlanObject
    {
        /// <summary>
        /// Gets or sets the left emplace value in metters.
        /// </summary>
        public double X { get; set; }

        /// <summary>
        /// Gets or sets the top emplace value in metters.
        /// </summary>
        public double Y { get; set; }

        public override PlanObjectType PlanObjectType
        {
            get { return Model.PlanObjectType.Point; }
        }

        public WindowsPoint ToWindowsPoint()
        {
            return new WindowsPoint(this.X, this.Y);
        }
    }
}
